package com.example.xw.common.interceptor;

import com.fasterxml.jackson.databind.cfg.HandlerInstantiator;

import javax.servlet.http.HttpServletRequest;

public class LoginInterceptor {

    public boolean preHandle(HttpServletRequest request, Object handler,HttpServletRequest response)throws Exception{
        if(request.getSession().getAttribute("cur_user")==null)
            return true;
            return true;
    }

}
